﻿@model cloudscribe.Core.Identity.IdentityServerLogoutViewModel
@using cloudscribe.Core.IdentityServerIntegration
@using Microsoft.Extensions.Localization
@inject IStringLocalizer<CloudscribeIds4Resources> sr
@inject ISiteContextResolver siteResolver
@{ 
    var Tenant = await siteResolver.ResolveSite(Context.Request.Host.Host, Context.Request.Path);
    var messageFormat = sr["Would you like to logout of {0}?"];
    var message = string.Format(messageFormat, Tenant.SiteName);
}

<div class="logout-page">
    <div class="page-header">
        <h1>@sr["Logout"]</h1>
    </div>

    <div class="row">
        <div class="col-sm-6">
            <p>@message</p>
            <form asp-action="Logout">
                <input type="hidden" name="logoutId" value="@Model.LogoutId" />
                <fieldset>
                    <div class="form-group">
                        <button class="btn btn-primary">@sr["Yes"]</button>
                    </div>
                </fieldset>
            </form>
        </div>
    </div>
</div>
